  <rule-group current-rule="currentRule" rules="rules"></rule-group>
  <!-- <button class="btn btn-default" ng-click="addSubTemplate()">添加子模板</button> -->
  <button class="btn btn-default" ng-click="testTemp()">test template</button>
  <button class="btn btn-default" ng-click="saveTemp()">save template</button>
 <!--  <table class="table table-responsive table-bordered">
      <tr>
        <th ng-repeat="head in show.rule.head">
          {{head}}
        </th>
      </tr>
      <tr ng-repeat="page in show.rule.res">
        <td ng-repeat="rules in page">
          共{{rules.length}}条结果
          <ul>
            <li ng-repeat="r in rules">
                {{$index+1}}.{{r}}
            </li>
          </ul>
        </td>
      </tr>
      {{result}}
</table> -->
 {{result}}
<div ng-repeat="page in result">
<button type="button" class="btn btn-default" ng-click="isCollapsed = !isCollapsed">第{{$index+1}}篇文章中</button>
  <hr>
<div uib-collapse="!isCollapsed">
  <div class="well well-lg">
    <div ng-repeat="rules in page">
      {{rules.name}}
      <ul>
        <li ng-repeat="rule in rules.value"> {{rule.text}}</li>
      </ul>
    </div>

  </div>
</div>
</div>